package codeCreate.util.TextAnalysis;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.swing.text.rtf.RTFEditorKit;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import codeCreate.domain.Country;
import codeCreate.domain.User;
import codeCreate.util.annotation.type.Method;

/**
 * 
* 项目名称:  SPMS测试设备
* 包:        codeCreate.util.TextAnalysis 
* 类名称:    DeviceCommonController.java
* 类描述:    设备公共控制类
* 创建人:    fw  
* 创建时间:  2017年5月9日 上午8:47:36
 */
@codeCreate.util.annotation.type.Controller(introduction = "设备公共接口")
@Controller
@RequestMapping(value = "/common", produces = "application/json;charset=UTF-8")
public class DeviceCommonController {

    /**
     * @Description 待我审批的审批单
     * @param req
     * @param resp
     * @param sessionId
     * @return
     */
    @Method(requestType = Country.class, responseType = User.class, introduction = "待我审批的审批单")
    @ResponseBody
    @RequestMapping(value = "/waitingApprove")
    public String waitingApprove(HttpServletRequest req, HttpServletResponse resp, String sessionId) {
        int code = 200;
        return null;
    }

    /**
     * @Description 设备操作
     * @param req
     * @param resp
     * @param sessionId
     * @return
     */
    @Method(requestType = Country.class, responseType = User.class, introduction = "设备操作")
    @ResponseBody
    @RequestMapping(value = "/deviceOperate")
    public String deviceOperate(HttpServletRequest req, HttpServletResponse resp, String sessionId) {
        return null;
    }

    /**
    * @Description: 我申请的设备申请单
    * @param @param req
    * @param @param resp
    * @param @param sessionId
    * @param @return  
    * @return String
    * @author le
    * @throws
    */
    @Method(requestType = Country.class, responseType = User.class, introduction = "我申请的设备申请单")
    @ResponseBody
    @RequestMapping(value = "/myApplication")
    public String myApplication(HttpServletRequest req, HttpServletResponse resp, String sessionId) {

        return null;
    }

    /**
    * @Description: 全部设备申请单，需区分不同类型管理员
    * @param @param req
    * @param @param resp
    * @param @param sessionId
    * @param @return  
    * @return String
    * @author le
    * @throws
    */
    @ResponseBody
    @RequestMapping(value = "/allApplication")
    public String allApplication(HttpServletRequest req, HttpServletResponse resp, String sessionId) {

        return null;
    }

    @ResponseBody
    @RequestMapping(value = "/applyInfo")
    public String applyInfo(HttpServletRequest req, HttpServletResponse resp, String sessionId) {
        return null;
    }

    @ResponseBody
    @RequestMapping(value = "/queryApprovalSetting")
    public String queryApprovalSetting(HttpServletRequest req, HttpServletResponse resp, String sessionId) {
        return null;
    }

    @ResponseBody
    @RequestMapping(value = "/updateApprovalSetting")
    public String updateApprovalSetting(HttpServletRequest req, HttpServletResponse resp, String sessionId) {
        return null;
    }

    @ResponseBody
    @RequestMapping(value = "/queryProjectByFuzzyKey")
    public String queryProjectByFuzzyKey(HttpServletRequest req, HttpServletResponse resp, String sessionId) {

        return null;
    }

}
